/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.dqsy.muban.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.service.TreeService;
import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.modules.dqsy.muban.entity.FfTrees;
import com.jeeplus.modules.dqsy.muban.mapper.FfTreesMapper;

/**
 * 模块选择Service
 * @author 于金洋
 * @version 2020-10-28
 */
@Service
@Transactional(readOnly = true)
public class FfTreesService extends TreeService<FfTreesMapper, FfTrees> {

	public FfTrees get(String id) {
		return super.get(id);
	}

	public List<FfTrees> findList(FfTrees ffTrees) {
		if (StringUtils.isNotBlank(ffTrees.getParentIds())){
			ffTrees.setParentIds(","+ffTrees.getParentIds()+",");
		}
		return super.findList(ffTrees);
	}

	@Transactional(readOnly = false)
	public void save(FfTrees ffTrees) {
		super.save(ffTrees);
	}

	@Transactional(readOnly = false)
	public void delete(FfTrees ffTrees) {
		super.delete(ffTrees);
	}

}